﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013EF RID: 5103
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyGameItemInfo : IMessage<TrainPartyGameItemInfo>, IMessage, IEquatable<TrainPartyGameItemInfo>, IDeepCloneable<TrainPartyGameItemInfo>, IBufferMessage
	{
		// Token: 0x17004059 RID: 16473
		// (get) Token: 0x0600E487 RID: 58503 RVA: 0x0026312B File Offset: 0x0026132B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyGameItemInfo> Parser
		{
			get
			{
				return TrainPartyGameItemInfo._parser;
			}
		}

		// Token: 0x1700405A RID: 16474
		// (get) Token: 0x0600E488 RID: 58504 RVA: 0x00263132 File Offset: 0x00261332
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyGameItemInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700405B RID: 16475
		// (get) Token: 0x0600E489 RID: 58505 RVA: 0x00263144 File Offset: 0x00261344
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyGameItemInfo.Descriptor;
			}
		}

		// Token: 0x0600E48A RID: 58506 RVA: 0x0026314B File Offset: 0x0026134B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameItemInfo()
		{
		}

		// Token: 0x0600E48B RID: 58507 RVA: 0x00263154 File Offset: 0x00261354
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameItemInfo(TrainPartyGameItemInfo other) : this()
		{
			this.aLPDNPDDPJC_ = other.aLPDNPDDPJC_;
			this.trainPartyCardInfo_ = ((other.trainPartyCardInfo_ != null) ? other.trainPartyCardInfo_.Clone() : null);
			this.eCLBPHPMGIN_ = other.eCLBPHPMGIN_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E48C RID: 58508 RVA: 0x002631AC File Offset: 0x002613AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameItemInfo Clone()
		{
			return new TrainPartyGameItemInfo(this);
		}

		// Token: 0x1700405C RID: 16476
		// (get) Token: 0x0600E48D RID: 58509 RVA: 0x002631B4 File Offset: 0x002613B4
		// (set) Token: 0x0600E48E RID: 58510 RVA: 0x002631BC File Offset: 0x002613BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ALPDNPDDPJC
		{
			get
			{
				return this.aLPDNPDDPJC_;
			}
			set
			{
				this.aLPDNPDDPJC_ = value;
			}
		}

		// Token: 0x1700405D RID: 16477
		// (get) Token: 0x0600E48F RID: 58511 RVA: 0x002631C5 File Offset: 0x002613C5
		// (set) Token: 0x0600E490 RID: 58512 RVA: 0x002631CD File Offset: 0x002613CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameCardInfo TrainPartyCardInfo
		{
			get
			{
				return this.trainPartyCardInfo_;
			}
			set
			{
				this.trainPartyCardInfo_ = value;
			}
		}

		// Token: 0x1700405E RID: 16478
		// (get) Token: 0x0600E491 RID: 58513 RVA: 0x002631D6 File Offset: 0x002613D6
		// (set) Token: 0x0600E492 RID: 58514 RVA: 0x002631DE File Offset: 0x002613DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool ECLBPHPMGIN
		{
			get
			{
				return this.eCLBPHPMGIN_;
			}
			set
			{
				this.eCLBPHPMGIN_ = value;
			}
		}

		// Token: 0x0600E493 RID: 58515 RVA: 0x002631E7 File Offset: 0x002613E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyGameItemInfo);
		}

		// Token: 0x0600E494 RID: 58516 RVA: 0x002631F8 File Offset: 0x002613F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyGameItemInfo other)
		{
			return other != null && (other == this || (this.ALPDNPDDPJC == other.ALPDNPDDPJC && object.Equals(this.TrainPartyCardInfo, other.TrainPartyCardInfo) && this.ECLBPHPMGIN == other.ECLBPHPMGIN && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E495 RID: 58517 RVA: 0x00263258 File Offset: 0x00261458
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ALPDNPDDPJC != 0U)
			{
				num ^= this.ALPDNPDDPJC.GetHashCode();
			}
			if (this.trainPartyCardInfo_ != null)
			{
				num ^= this.TrainPartyCardInfo.GetHashCode();
			}
			if (this.ECLBPHPMGIN)
			{
				num ^= this.ECLBPHPMGIN.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E496 RID: 58518 RVA: 0x002632C6 File Offset: 0x002614C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E497 RID: 58519 RVA: 0x002632CE File Offset: 0x002614CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E498 RID: 58520 RVA: 0x002632D8 File Offset: 0x002614D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ALPDNPDDPJC != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.ALPDNPDDPJC);
			}
			if (this.trainPartyCardInfo_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.TrainPartyCardInfo);
			}
			if (this.ECLBPHPMGIN)
			{
				output.WriteRawTag(112);
				output.WriteBool(this.ECLBPHPMGIN);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E499 RID: 58521 RVA: 0x0026334C File Offset: 0x0026154C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ALPDNPDDPJC != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ALPDNPDDPJC);
			}
			if (this.trainPartyCardInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TrainPartyCardInfo);
			}
			if (this.ECLBPHPMGIN)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E49A RID: 58522 RVA: 0x002633B0 File Offset: 0x002615B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyGameItemInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ALPDNPDDPJC != 0U)
			{
				this.ALPDNPDDPJC = other.ALPDNPDDPJC;
			}
			if (other.trainPartyCardInfo_ != null)
			{
				if (this.trainPartyCardInfo_ == null)
				{
					this.TrainPartyCardInfo = new TrainPartyGameCardInfo();
				}
				this.TrainPartyCardInfo.MergeFrom(other.TrainPartyCardInfo);
			}
			if (other.ECLBPHPMGIN)
			{
				this.ECLBPHPMGIN = other.ECLBPHPMGIN;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E49B RID: 58523 RVA: 0x0026342C File Offset: 0x0026162C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E49C RID: 58524 RVA: 0x00263438 File Offset: 0x00261638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 106U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.ECLBPHPMGIN = input.ReadBool();
						}
					}
					else
					{
						if (this.trainPartyCardInfo_ == null)
						{
							this.TrainPartyCardInfo = new TrainPartyGameCardInfo();
						}
						input.ReadMessage(this.TrainPartyCardInfo);
					}
				}
				else
				{
					this.ALPDNPDDPJC = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005A6D RID: 23149
		private static readonly MessageParser<TrainPartyGameItemInfo> _parser = new MessageParser<TrainPartyGameItemInfo>(() => new TrainPartyGameItemInfo());

		// Token: 0x04005A6E RID: 23150
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005A6F RID: 23151
		public const int ALPDNPDDPJCFieldNumber = 1;

		// Token: 0x04005A70 RID: 23152
		private uint aLPDNPDDPJC_;

		// Token: 0x04005A71 RID: 23153
		public const int TrainPartyCardInfoFieldNumber = 13;

		// Token: 0x04005A72 RID: 23154
		private TrainPartyGameCardInfo trainPartyCardInfo_;

		// Token: 0x04005A73 RID: 23155
		public const int ECLBPHPMGINFieldNumber = 14;

		// Token: 0x04005A74 RID: 23156
		private bool eCLBPHPMGIN_;
	}
}
